import MoleAction from "../actions/MoleAction";
import { EventNames } from "../consts/EventNames";
import BaseState from "../core/BaseState";
import EventBus from "../core/EventBus";

export default class GamingState extends BaseState {
    constructor() {
        super();
        this.addActions(MoleAction.create());
    }

    onEnter() {
        EventBus.emit(EventNames.UPDATE_JOB_TEXT, "游戏中");
        EventBus.emit(EventNames.UPDATE_STATUS_TEXT, "空闲");
    }

    onUpdate(): void {
        super.onUpdate();
    }
}